<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>简历</title>
	</head>
	<style type="text/css">
		#workid{
			display: flex;
			align-items: center;
		}
		#workjl{
			display: flex;
			justify-content: flex-end;
		}
		
	</style>
	<body>
		<div id="">
			<h3>工作经历</h3>
			<hr >
			<div id="work">
			</div>
			<div id="workjl">
				<a href="#" onclick="addwork()">添加工作经历</a>
			</div>
		</div>
	</body>
	<script type="text/javascript">
	function delwork(event){
		var workobj = document.getElementById('work');
		var deltag = event.target.parentElement;
		workobj.removeChild(deltag)
	}
		function addwork(){
			var workobj = document.getElementById('work');
			var newdiv = document.createElement('div');
			newdiv.innerHTML = `公司名称：<input type="" name="" id="" value="" />
				职位：<input type="" name="" id="" value="" />
				<a href="#" onclick="delwork(event);">删除工作经历</a>
				<br>
				<br>
				<div id="workid">
					工作职责及工作内容描述:<textarea rows="8" cols="100">
						
					</textarea>
				</div>
				<hr >`
			workobj.appendChild(newdiv)
		}
		onload = function(){
			addwork()
		}
		
	</script>
</html>
